int gsl_sf_hyperg_2F0_impl(double a, double b, double x,
gsl_sf_result * result); int gsl_sf_hyperg_2F0_e(double a, double
b, double x, gsl_sf_result * result);
File: gsl-ref.info, Node: Laguerre Functions, Next: Legendre Functions and Spherical Harmonics, Prev: Hypergeometric Functions, Up: Special Functions
Laguerre Functions
==================
The Laguerre polynomials are defined in terms of confluent
hypergeometric functions as L^a_n(x) = (a+1)_n / n! 1F1(-n,a+1,x) .
- Function: int gsl_sf_laguerre_1_impl (double a, double x,
gsl_sf_result * result)
- Function: int gsl_sf_laguerre_2_impl (double a, double x,
gsl_sf_result * result)
- Function: int gsl_sf_laguerre_3_impl (double a, double x,
gsl_sf_result * result)
- Function: int gsl_sf_laguerre_1_e (double a, double x, gsl_sf_result
* result)
- Function: int gsl_sf_laguerre_2_e (double a, double x, gsl_sf_result
* result)
- Function: int gsl_sf_laguerre_3_e (double a, double x, gsl_sf_result
* result)
Evaluate generalized Laguerre polynomials using explicit
representations. Exceptional Return Values: none
- Function: int gsl_sf_laguerre_n_impl (const int n, const double a,
const double x, gsl_sf_result * result)
- Function: int gsl_sf_laguerre_n_e (int n, double a, double x,
gsl_sf_result * result)
Domain: a > -1.0, n >= 0 Evaluate generalized Laguerre polynomials.
Exceptional Return Values: GSL_EDOM
File: gsl-ref.info, Node: Legendre Functions and Spherical Harmonics, Next: Logarithm and Related Functions, Prev: Laguerre Functions, Up: Special Functions
Legendre Functions and Spherical Harmonics
==========================================
Legendre Polynomials
--------------------
/* P_l(x), l=1,2,3 *
- Function: int gsl_sf_legendre_P1_impl (double x, gsl_sf_result *
result)
- Function: int gsl_sf_legendre_P2_impl (double x, gsl_sf_result *
result)
- Function: int gsl_sf_legendre_P3_impl (double x, gsl_sf_result *
result)
- Function: int gsl_sf_legendre_P1_e (double x, gsl_sf_result * result)
- Function: int gsl_sf_legendre_P2_e (double x, gsl_sf_result * result)
- Function: int gsl_sf_legendre_P3_e (double x, gsl_sf_result * result)
Exceptional Return Values: none
/* P_l(x) l >= 0; |x| <= 1 *
- Function: int gsl_sf_legendre_Pl_impl (int l, double x,
gsl_sf_result * result)
- Function: int gsl_sf_legendre_Pl_e (int l, double x, gsl_sf_result *
result)
Exceptional Return Values: GSL_EDOM
/* P_l(x) for l=0,...,lmax; |x| <= 1 *
- Function: int gsl_sf_legendre_Pl_array_impl (int lmax, double x,
double * result_array)
- Function: int gsl_sf_legendre_Pl_array_e (int lmax, double x, double
* result_array)
Exceptional Return Values: GSL_EDOM
/* Q_0(x), x > -1, x != 1 *
- Function: int gsl_sf_legendre_Q0_impl (double x, gsl_sf_result *
result)
- Function: int gsl_sf_legendre_Q0_e (double x, gsl_sf_result * result)
Exceptional Return Values: GSL_EDOM
/* Q_1(x), x > -1, x != 1 *
- Function: int gsl_sf_legendre_Q1_impl (double x, gsl_sf_result *
result)
- Function: int gsl_sf_legendre_Q1_e (double x, gsl_sf_result * result)
Exceptional Return Values: GSL_EDOM
/* Q_l(x), x > -1, x != 1, l >= 0 *
- Function: int gsl_sf_legendre_Ql_impl (int l, double x,
gsl_sf_result * result)
- Function: int gsl_sf_legendre_Ql_e (int l, double x, gsl_sf_result *
result)
Exceptional Return Values: GSL_EDOM
Associated Legendre Polynomials and Spherical Harmonics
legendre_H3d_l(l,lambda,eta) = j_l(lambda*eta) * * eta >= 0.0, l >= 0
- Function: int gsl_sf_legendre_H3d_impl (int l, double lambda, double
eta, gsl_sf_result * result)
- Function: int gsl_sf_legendre_H3d_e (int l, double lambda, double
eta, gsl_sf_result * result)
Exceptional Return Values: GSL_EDOM
/* Array of H3d(ell), 0 <= ell <= lmax */
- Function: int gsl_sf_legendre_H3d_array_impl (int lmax, double
lambda, double eta, double * result_array)
- Function: int gsl_sf_legendre_H3d_array_e (int lmax, double lambda,
double eta, double * result_array)
Exceptional Return Values:
File: gsl-ref.info, Node: Logarithm and Related Functions, Next: Polynomial Manipulation, Prev: Legendre Functions and Spherical Harmonics, Up: Special Functions
Logarithm and Related Functions
===============================
- Function: int gsl_sf_log_impl (double x, gsl_sf_result * result)
- Function: int gsl_sf_log_e (double x, gsl_sf_result * result)
Domain: x > 0.0 Exceptional Return Values: GSL_EDOM
- Function: int gsl_sf_log_abs_impl (double x, gsl_sf_result * result)
- Function: int gsl_sf_log_abs_e (double x, gsl_sf_result * result)
\log(|x|) Domain: x != 0.0 Exceptional Return Values: GSL_EDOM
/* Complex Logarithm * exp(lnr + I theta) = zr + I zi * Returns
argument in [-pi,pi]. *
- Function: int gsl_sf_complex_log_impl (double zr, double zi,
gsl_sf_result * lnr, gsl_sf_result * theta)
- Function: int gsl_sf_complex_log_e (double zr, double zi,
gsl_sf_result * lnr, gsl_sf_result * theta)
Exceptional Return Values: GSL_EDOM
- Function: int gsl_sf_log_1plusx_impl (double x, gsl_sf_result *
result)
- Function: int gsl_sf_log_1plusx_e (double x, gsl_sf_result * result)
This function computes the roots of the general polynomial P(x) =
a_0 + a_1 x + a_2 x^2 + ... + a_{n-1} x^{n-1} using balanced-QR
reduction of the companion matrix. The parameter N specifies the
length of the coefficient array. The coefficient of the highest
order term must be non-zero. The function requires a workspace W
of the appropriate size. The n-1 roots are returned in the packed
complex array Z of length 2(n-1), alternating real and imaginary
parts.
The functions returns `GSL_SUCCESS' if all the roots are found and
`GSL_EFAILED' if the QR reduction does not converge.
File: gsl-ref.info, Node: Roots of Polynomials Examples, Next: Roots of Polynomials References and Further Reading, Prev: General polynomial equations, Up: Roots of Polynomials
Examples
========
To demonstrate the use of the general polynomial solver we will take
the polynomial P(x) = x^5 - 1 which has the following roots,
1, e^{2\pi i /5}, e^{4\pi i /5}, e^{6\pi i /5}, e^{8\pi i /5}